﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///
    ///</summary>
    [SugarTable("DBO.t_PalletMoveRecord")]
    public partial class t_PalletMoveRecord
    {
        public t_PalletMoveRecord()
        {


        }
        /// <summary>
        /// Desc:托盘移动记录Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:订单Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int RelatedOrderDetailId { get; set; }

        /// <summary>
        /// Desc:单据类型
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int BillType { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BusinessType { get; set; }

        /// <summary>
        /// Desc:垛号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string PalletBarcode { get; set; }

        /// <summary>
        /// Desc:移位指令Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int MoveInstructId { get; set; }

        /// <summary>
        /// Desc:回原储位指令Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BackInstructId { get; set; }

        /// <summary>
        /// Desc:组垛Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? StackingStorageId { get; set; }

        /// <summary>
        /// Desc:库存Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int InventoryId { get; set; }

        /// <summary>
        /// Desc:原储位Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int FromCellId { get; set; }

        /// <summary>
        /// Desc:原储位编码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FromCellCode { get; set; }

        /// <summary>
        /// Desc:原储位名称
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string FromCellName { get; set; }

        /// <summary>
        /// Desc:原储位排号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int FromCellLineNO { get; set; }

        /// <summary>
        /// Desc:原储位层号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int FromCellLayerNO { get; set; }

        /// <summary>
        /// Desc:原储位列号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int FromCellColumnNO { get; set; }

        /// <summary>
        /// Desc:原储位所在深度
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int FromCellDepthIndex { get; set; }

        /// <summary>
        /// Desc:转移储位Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int MoveToCellId { get; set; }

        /// <summary>
        /// Desc:转移储位编码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string MoveToCellCode { get; set; }

        /// <summary>
        /// Desc:转移储位名称
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string MoveToCellName { get; set; }

        /// <summary>
        /// Desc:转移储位排号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int MoveToCellLineNO { get; set; }

        /// <summary>
        /// Desc:转移储位层号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int MoveToCellLayerNO { get; set; }

        /// <summary>
        /// Desc:转移储位列号
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int MoveToCellColumnNO { get; set; }

        /// <summary>
        /// Desc:转移储位深度
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int MoveToCellDepthIndex { get; set; }

        /// <summary>
        /// Desc:返回储位Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BackToCellId { get; set; }

        /// <summary>
        /// Desc:返回储位编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BackToCellCode { get; set; }

        /// <summary>
        /// Desc:返回储位名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BackToCellName { get; set; }

        /// <summary>
        /// Desc:返回储位排号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BackToCellLineNO { get; set; }

        /// <summary>
        /// Desc:返回储位层号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BackToCellLayerNO { get; set; }

        /// <summary>
        /// Desc:返回储位列号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BackToCellColumnNO { get; set; }

        /// <summary>
        /// Desc:返回储位深度
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BackToCellDepthIndex { get; set; }

        /// <summary>
        /// Desc:状态：0-转移中；1-已转移；2-返回中；3-已返回
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public int Status { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:DateTime.Now
        /// Nullable:False
        /// </summary>           
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// Desc:转移完成时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? MoveFinishedDate { get; set; }

        /// <summary>
        /// Desc:返回完成时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? BackFinishedDate { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int FromCellHeightType { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int MoveToCellHeightType { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BackToCellHeightType { get; set; }

        /// <summary>
        /// Desc:垛实际高度类型
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? RealHeightType { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? RefCellCode { get; set; }

        /// <summary>
        /// Desc:
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public bool? IsMultPallet { get; set; }

    }
}
